-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(NODE-3727): add overloads for BulkOperationBase's execute function #3018
Conversation
@skrtheboss Thank you for submitting this suggestion. Can you please clarify what use case you are trying to support? We try to ensure that we add any missing use cases to our type test coverage so that we can avoid regressions. |
This adds overloads to the execute function, to ensure void is returned if a callback is provided, and a promise is returned if no callback is specified.
HI @dariakp . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for adding tests for this implementation, we'll fully review the PR soon. Meanwhile, I created this ticket for tracking: NODE-3727
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again for your submission!
#3018) Co-authored-by: Daria Pardue <[email protected]>
#3018) Co-authored-by: Daria Pardue <[email protected]>
Description
Add overloads for BulkOperationBase's execute function.
What is changing?
This adds overloads to the execute function, to ensure void is returned if a callback is provided,
and a promise is returned if no callback is specified.
Is there new documentation needed for these changes? No.
What is the motivation for this change?
Missing overloads.
Double check the following
npm run check:lint
script<type>(NODE-xxxx)<!>: <description>